package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-10-30 15:23
 */
public class Test02 {
    public static void main(String[] args) {
//        Singleton s1=new Singleton();
//        Singleton s2=new Singleton();
        Singleton02 s1=Singleton02.createInstance();
        Singleton02 s2=Singleton02.createInstance();
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s1==s2);
    }
}
